home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
screenblanker
/
swazblanker26
/
moduledemo
< prev
next >
Wrap
Text File
|
1995-03-09
|
2KB
|
94 lines
/* This script demos the SwazBlanker modules, running each for a while.
By Osma Ahvenlampi <oahvenla@snakemail.hut.fi> */
/* Try to start the server task if not running */
if ~show('L','rexxsupport.library') then
if ~addlib('rexxsupport.library',0,-30,0) then do
say 'rexxsupport.library not found! Aborting...'
exit 20
end
if ~show('P','SWAZBLANKER') then do
say 'SwazBlanker not running!'
say 'Attempting to start it...'
address command
'Run >NIL: SwazBlanker >NIL:'
'WaitForPort SWAZBLANKER'
if rc = 5 then do
say 'Unable to run SwazBlanker!'
exit 20
end
end
blankers.1.name = 'Alerts'
blankers.1.description = 'This module flashes alert messages.'
blankers.1.delay = 10
blankers.2.name = 'Dimmer'
blankers.3.name = 'Gravity'
blankers.4.name = 'Headlines'
blankers.5.name = 'Labrynth'
blankers.6.name = 'Lines'
blankers.7.name = 'Melt'
blankers.8.name = 'Mig'
blankers.9.name = 'Pattern'
blankers.10.name = 'Plazma'
blankers.11.name = 'Pyro'
blankers.12.name = 'Quotes'
blankers.13.name = 'Rainfall'
blankers.14.name = 'Shuffle'
blankers.15.name = 'Skyline'
blankers.16.name = 'Spliner'
blankers.17.name = 'Stars'
blankers.18.name = 'Swarmer'
blankers.19.name = 'Toasters'
blankers.20.name = 'Worms'
/* ok, now we can start the demo */
address 'SWAZBLANKER'
'BLANKMOUSE'
say 'SwazBlanker module demo'
say ' This demo shows you all the SwazBlanker modules one by one.'
say ' Just sit back and relax!'
call delay( 25 )
/* SwazBlanker ARexx commands:
QUIT removes BlankerServer
SHOW displays the configuration GUI
HIDE hides the GUI
DISABLE disables SwazBlanker (see the Commodities Exchange)
ENABLE enables it
BLANK blanks with the preferred method
BLANKRANDOM chooses a random module for blanking
BLANKNORMAL blanks with a plain black screen
BLANK chooses a specific blanker module
UNBLANK stops blanking
BLANKMOUSE blanks the mouse pointer
*/
i = 1
do while blankers.i.name ~= 'BLANKERS.'i'.NAME'
say blankers.i.name
if blankers.i.description = 'BLANKERS.'i'.DESCRIPTION' then
blankers.i.description = 'No description given.'
if blankers.i.delay = 'BLANKERS.'i'.DELAY' then
blankers.i.delay = 10
say ' ' || blankers.i.description
call delay( 50 )
'BLANK' blankers.i.name
call delay( blankers.i.delay * 50 )
'UNBLANK'
i = i + 1
end
say 'All done!'
say 'You have seen all the BlankerServer modules.'
say 'Configure BlankerServer to suit your preferences now.'
call delay( 50 )
'SHOW'
EXIT 0